package com.qk.common.exception;

import com.qk.common.enums.Code;

/**
 * @文件名: CommonException
 * @作者: DX
 * @创建日期: 2025/10/10
 * @描述:
 */
public class CommonException extends BaseException{
    public CommonException(Code  code) {
        super(code.getMsg());
    }

    public static void thowsCommonException(Code  code) {
        throw new CommonException(code);
    }
}
